package com.example.ruoyiakp.product.service.impl;


import java.util.List;

import com.example.ruoyiakp.product.domain.AgrAgriculturalDetect;
import com.example.ruoyiakp.product.mapper.AgrAgriculturalDetectMapper;
import com.example.ruoyiakp.product.service.AgrAgriculturalDetectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName AgrAgriculturalDetectServiceImpl
 * @Description 实现类
 * @Author 陈萝瑶
 * @Date 2025/3/5 14:48
 */
@Service
public class AgrAgriculturalDetectServiceImpl implements AgrAgriculturalDetectService {
    @Resource
    private AgrAgriculturalDetectMapper agrAgriculturalDetectMapper;

    @Override
    public AgrAgriculturalDetect selectAgrAgriculturalDetectByDetectId(Long detectId)
    {
        return agrAgriculturalDetectMapper.selectAgrAgriculturalDetectByDetectId(detectId);
    }

    @Override
    public List<AgrAgriculturalDetect> selectAgrAgriculturalDetectList(AgrAgriculturalDetect agrAgriculturalDetect)
    {
        return agrAgriculturalDetectMapper.selectAgrAgriculturalDetectList(agrAgriculturalDetect);
    }

    @Override
    public int insertAgrAgriculturalDetect(AgrAgriculturalDetect agrAgriculturalDetect)
    {
        return agrAgriculturalDetectMapper.insertAgrAgriculturalDetect(agrAgriculturalDetect);
    }

    @Override
    public int insertDetectBatch(Long batchId) {
        return agrAgriculturalDetectMapper.insertDetectBatch(batchId);
    }

    @Override
    public int updateUrl(String url) {
        return agrAgriculturalDetectMapper.updateUrl(url);
    }

    @Override
    public int deleteAgrAgriculturalDetectByDetectIds(Long[] detectIds)
    {
        return agrAgriculturalDetectMapper.deleteAgrAgriculturalDetectByDetectIds(detectIds);
    }

    @Override
    public int deleteByBatchId(Long batchId) {
        return agrAgriculturalDetectMapper.deleteByBatchId(batchId);
    }

    @Override
    public int updateImg(Long batchId) {
        return agrAgriculturalDetectMapper.updateImg(batchId);
    }
}
